package model;

import dao.Artist;
import service.ArtistService;
import service.ArtistServiceImpl;

import java.util.List;

public class ArtistModel {
    private static final ArtistModel INSTANCE = new ArtistModel();
    private static final ArtistService artistService = ArtistServiceImpl.getInstance();

    private ArtistModel() {

    }

    public static ArtistModel getInstance() {
        return INSTANCE;
    }

    public Artist getArtistById(String artistId) {
        return artistService.getArtistById(Long.valueOf(artistId));
    }

    public List<Artist> getArtists() {
        return artistService.getArtists();
    }

    public Artist getArtistByAlbumId(String albumId) {
        return artistService.getArtistByAlbumId(Long.valueOf(albumId));
    }
}
